#-------------------------------------------------
#
# Project created by QtCreator 2017-01-23T16:39:33
#
#-------------------------------------------------

QT       -= core gui

TARGET = CURControl
TEMPLATE = lib
CONFIG   += staticlib debug_and_release c++11

DEFINES += CURCONTROL_LIBRARY

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


QMAKE_CXXFLAGS_RELEASE = -O2
#QMAKE_CXXFLAGS = -O0 -g -std=c++11
DEFINES += _GLIBCXX_HAS_GTHREADS _GLIBCXX_USE_NANOSLEEP _GLIBCXX_USE_SCHED_YIELD linux

INCLUDEPATH += $$PWD/../common/IPC
INCLUDEPATH += $$PWD/../common
INCLUDEPATH += $$PWD/../3rdparty/spdlog/include
LIBS += -L$$PWD/../3rdparty/spdlog -lspdlog

CONFIG(debug, debug|release){
    DESTDIR = $$PWD/../lib/debug
} else {
    DESTDIR = $$PWD/../lib/release
}

HEADERS += \
    ../common/logger.h \
    ../common/IPC/TcpClient.h \
    ../common/IPC/TcpProtocol.h \
    ../common/IPC/TcpServer.h \
    RTDEUtility.h \
    RobotState.h \
    RTDEClient.h \
    BaseClient.h \
    RTDEProtocol.h \
    RTDEControl.h \
    DashBoardClient.h \
    CURControl.h \
    ScriptClient.h

SOURCES += \
    ../common/logger.cpp \
    ../common/IPC/TcpClient.cpp \
    ../common/IPC/TcpServer.cpp \
    RTDEClient.cpp \
    BaseClient.cpp \
    RTDEControl.cpp \
    DashBoardClient.cpp \
    CURControl.cpp \
    ScriptClient.cpp

